package com.jifen.goods.vo;

import com.jifen.config.Global;
import org.apache.commons.lang3.StringUtils;

public class GoodsVo {

    private Integer id;

    private String name;

    private Double price;

    private String coverPic;

    private String[] slidePic;

    private String[] detailPic;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getCoverPic() {
        if(StringUtils.isNotBlank(coverPic)){
            return Global.getConfig("cdnUrl")+coverPic;
        }
        return coverPic;
    }

    public void setCoverPic(String coverPic) {
        this.coverPic = coverPic;
    }

    public String[] getSlidePic() {
        return slidePic;
    }

    public void setSlidePic(String[] slidePic) {
        this.slidePic = slidePic;
    }

    public String[] getDetailPic() {
        return detailPic;
    }

    public void setDetailPic(String[] detailPic) {
        this.detailPic = detailPic;
    }
}
